package com.atXiao.food.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public class WeatherResponse {
    @JsonProperty("shidu")
    private String shidu;

    @JsonProperty("pm25")
    private double pm25;

    @JsonProperty("pm10")
    private double pm10;

    @JsonProperty("quality")
    private String quality;

    @JsonProperty("wendu")
    private String wendu;

    public String getShidu() {
        return shidu;
    }

    public void setShidu(String shidu) {
        this.shidu = shidu;
    }

    public double getPm25() {
        return pm25;
    }

    public void setPm25(double pm25) {
        this.pm25 = pm25;
    }

    public double getPm10() {
        return pm10;
    }

    public void setPm10(double pm10) {
        this.pm10 = pm10;
    }

    public String getQuality() {
        return quality;
    }

    public void setQuality(String quality) {
        this.quality = quality;
    }

    public String getWendu() {
        return wendu;
    }

    public void setWendu(String wendu) {
        this.wendu = wendu;
    }

    public String getGanmao() {
        return ganmao;
    }

    public void setGanmao(String ganmao) {
        this.ganmao = ganmao;
    }

    public List<Forecast> getForecast() {
        return forecast;
    }

    public void setForecast(List<Forecast> forecast) {
        this.forecast = forecast;
    }

    @JsonProperty("ganmao")
    private String ganmao;

    @JsonProperty("forecast")
    private List<Forecast> forecast;

    // 其他属性...

    // 对应的 Getter 和 Setter 方法...

    public static class Forecast {
        @JsonProperty("date")
        private String date;

        @JsonProperty("high")
        private String high;

        @JsonProperty("low")
        private String low;

        @JsonProperty("ymd")
        private String ymd;

        @JsonProperty("week")
        private String week;

        @JsonProperty("sunrise")
        private String sunrise;

        @JsonProperty("sunset")
        private String sunset;

        @JsonProperty("aqi")
        private int aqi;

        @JsonProperty("fx")
        private String fx;

        @JsonProperty("fl")
        private String fl;

        @JsonProperty("type")
        private String type;

        @JsonProperty("notice")
        private String notice;

    }
}
